import * as React from 'react'
import { Modal } from 'antd'
import { ModalFuncProps } from 'antd/lib/modal'

interface IProps extends ModalFuncProps {}
class ModalCcomponent extends React.Component<IProps> {
  constructor(props: IProps) {
    super(props)
    this.state = {}
    this.confirmLoading = this.confirmLoading.bind(this)
  }

  private confirmLoading(): boolean {
      return false
  }
  public render() {
    const { visible, onOk, onCancel } = this.props
    return (
      <Modal
        title="提示"
        visible={visible}
        onOk={onOk}
        confirmLoading={this.confirmLoading()}
        onCancel={onCancel}
      >
        <p>确定已完成该待办事项吗？</p>
      </Modal>
    )
  }
}

export default ModalCcomponent
